package com.ykg.mapper;

import com.ykg.pojo.CompanyUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * 实体类：公司用户
 * Created on 2021/6/21 19:02.
 *
 * @Author: zetong
 * @Description:
 */
@Mapper
@Repository
public interface CompanyUserMapper {
    //查询所有公司用户信息
    List<CompanyUser> findAll();

    //根据账号找出用户信息
    CompanyUser findByAccount(String account, String password);

    //根据id查询身份
    CompanyUser findById(Long id);
}
